{include file="layout_basic.tpl"}

<form action="" method="post">
	<fieldset>
		<legend>{$ui.newidioma}</legend>
		<dl>
			<dt> <label>{$ui.idinome}</label></dt>
			<dd> <input type="text" name="idioma" value="{$edit}"/> </dd>			
		</dl>
		<input type="submit" value="{$ui.saveaction}"/> 
	</fieldset>
</form>
	
	<fieldset>
		<legend>{$ui.listidioma}</legend>
		
		<div class="widget_tableDiv">
			<table id="datatable">
				<thead>
					<tr>
						<td>{$ui.id}</td>
						<td>{$ui.idioma}</td>
						<td>{$ui.actions}</td>
					</tr>
				</thead>
				
				<tbody class="scrollingContent">
				{foreach from=$tablevalues item=row}
				<tr>
					<td>{$row.cod_idioma}</td>
					<td>{$row.nome_idioma}</td>
					<td> 
						<a href="?edit={$row.cod_idioma}" style="display:inline"><img alt="edit" border="0" src="img/edit.png"/></a>
						&nbsp;
						<a href="?del={$row.cod_idioma}" style="display:inline"><img alt="delete" border="0" src="img/delete.jpg"/></a>
						&nbsp;
						<a href="?set={$row.cod_idioma}" style="display:inline"><img alt="Set" border="0" src="img/correct.gif"/></a>
					</td>
				</tr>
				{/foreach}
				</tbody>
			</table>		
		</div>
		
		<script type="text/javascript">
			initTableWidget('datatable',570,150,Array('N','S',false));
		</script>
	
	</fieldset>
	

{include file="layout_basic_tail.tpl"}